home *** CD-ROM | disk | FTP | other *** search
/ Business Assistant / Business Assistant.iso / stock / ibmdisk5 / smcurup3.hlp < prev    next >
Text File  |  1992-02-08  |  10KB  |  207 lines

  1. SPECIFICATION OF ASCII FILE FORMAT          SM3.02           PAGE 1 OF 9
  2.  
  3. To "import" current volume and price data for all securities, but for
  4. just one date, press D or W from the Master Menu.  D is for DAILY-
  5. updated files only, and W is for WEEKLY-updated files only.  When you
  6. see the Current Data Update screen, press I to IMPORT from an ASCII
  7. file.  The program will ask you to specify the order in which data items
  8. appear in the input records.  This HELP screen (user manual chapter)
  9. explains how to make that specification.
  10.  
  11. The data to be "imported" must be in ASCII (say "askee") format, because
  12. this is a universal format which can be understood by most communica-
  13. tions, spreadsheet and database programs.  ASCII is a standard which
  14. describes the bit patterns used for computer storage of individual let-
  15. ters, digits, puncutation and other special characters.  For example the
  16. capital letter "A" has the bit pattern 01000001.  Most personal compu-
  17. ters can recognize ASCII.  Textual information, such as what you are
  18. reading now, is usually stored in ASCII format.
  19.  
  20.  
  21.  
  22.  
  23.  
  24. SPECIFICATION OF ASCII FILE FORMAT                           PAGE 2 OF 9
  25.  
  26. Numbers must be in a binary format before they can be used in calcula-
  27. tions by a computer.  The Stock Charting System stores volume, prices,
  28. dates and other information in a binary format.  Therefore, numbers in
  29. ASCII must be "translated" to binary before they are useful for calcula-
  30. tions.
  31.  
  32. The ASCII file you are "importing" from is created by a spreadsheet or
  33. communications program which is external to, and not a part of, the
  34. Stock Charting System.
  35.  
  36. On the ASCII input file, the lines can be in any order.  The program
  37. looks for and processes only those individual lines which contain valid
  38. data.  Lines which contain column headings, explanatory information,
  39. advertising, communications protocol and other things are ignored.
  40. Normally all of the information for one security will always be on one
  41. line.  The data items for each security can be in any order; and items
  42. not wanted, such as dates, can be skipped.  If you use CompuServe or
  43. another service that splits lines, see the last part of this chapter for
  44. important information.  
  45.  
  46.  
  47. SPECIFICATION OF ASCII FILE FORMAT                           PAGE 3 OF 9
  48.  
  49. Normally, the first data item the program looks for on each line is a
  50. valid ticker symbol.  If this symbol does not exist in the catalog, or
  51. if there is no corresponding price history file, the whole line is
  52. ignored.  Otherwise, the program scans that same individual line from
  53. left to right and looks for valid data items.  If the required data
  54. items are found, they are converted to binary format.  The number values
  55. are checked for "reasonableness" and for proper relationship, for
  56. example high or ask >= closing price >= low or bid.  ( >= means "greater
  57. than or equal to".)  Any error will cause that line to be discarded. 
  58.  
  59. Data items must be separated by blank spaces or other characters that
  60. are not numbers or letters.  Either fractional or decimal values are
  61. acceptable.  Fractions must be separated from their corresponding whole
  62. number parts by one and only one blank space.
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SPECIFICATION OF ASCII FILE FORMAT                           PAGE 4 OF 9
  71.  
  72. The program will ignore characters such as * to indicate ex-dividend.
  73. It will also ignore any quote marks or commas that may be used to separ-
  74. ate data items.  Thus it will accept data in the CSV, or comma-separated
  75. value, format which is used by some database programs.  It is the res-
  76. ponsibility of the user, in the process of using the external communica-
  77. tions or other program of his or her choice, to make sure the required
  78. data items are available.
  79.  
  80. Here are some examples of acceptable data, in order by stock symbol,
  81. high, low, close and volume:
  82.  
  83.      IBM   *120        109 3/4    110 1/2   110375   (* is ignored)
  84.      "SGAT",15.25,14,14.875,56259  (CSV format)
  85.      fg   31.125 29 30.5 4075      (lowercase stock symbol is OK)
  86.  
  87. The program will ask you to specify the sequence in which data items
  88. appear in the data you are "importing" into the Stock Charting System.
  89. This sequence may vary, depending on what source the data comes from.
  90. The required data items must be in the same order on each line they
  91. appear on.
  92.  
  93. SPECIFICATION OF ASCII FILE FORMAT                           PAGE 5 OF 9
  94.  
  95. Each required data item is identified by a letter of the alphabet, such
  96. as A for ask or high, B for bid or low, C for close, etc.  The sequence
  97. in which data items appear in the input is specified by typing those
  98. letters in a corresponding sequence, for example TABCV for ticker-high-
  99. low-close-volume.  If you don't know the sequence, you can find out from
  100. the documentation for the program that created the file, or by visual
  101. inspection after displaying the file on the screen or printer.  Usually
  102. the program that created the file also displays it. 
  103.  
  104. To skip over a data item you don't want to use, type the letter "R" if
  105. it is a stock price (ask/bid/last/open/etc.); otherwise type the letter
  106. "S".  In general you can use "S" to skip any data item, UNLESS it may
  107. contain a number with a fractional value such as 2 11/16.  "S" skips
  108. anything delimited by spaces or double quotes, so it won't work on
  109. fractions.  That's why you have to use "R" to consistently skip over
  110. numeric values that may or may not contain fractions.  Either "R" or "S"
  111. will work with whole numbers and decimal values.
  112.  
  113.  
  114.  
  115.  
  116. SPECIFICATION OF ASCII FILE FORMAT                           PAGE 6 OF 9
  117.  
  118. For example when receiving current quotes from Dow Jones Information
  119. Services, the data items are in order by ticker symbol, bid/close, ask/
  120. open, high, low, last, volume.  The "bid/close" is the previous day's
  121. closing price and "ask/open" is today's opening price, which the program
  122. does not use.  The current day's closing price is in the column labelled
  123. "last".  Therefore, you type the letters TPRABCV to specify the data
  124. item sequence.  You MUST specify where the stock symbol is; the program
  125. does NOT assume it is the first item on each line. 
  126.  
  127. Use S instead of R to skip any contiguous field such as the time of day.        
  128.  
  129. Use V for volume in hundreds (the normal case).  Otherwise use U.  Which
  130. one to use can only be determined by inspecting the data.
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139. SPECIFICATION OF ASCII FILE FORMAT                           PAGE 7 OF 9
  140.  
  141. Not all of the aforementioned data items must be present.  The program
  142. can use the ticker symbol, the current volume, high, low and close, and
  143. the previous close.  However the only items that absolutely must be
  144. available on each line are the ticker symbol and either the current
  145. closing price (or net asset value) or the ask and bid prices.  If the
  146. ask and bid prices are present, but not the closing price, the closing
  147. price is set to the bid price.  If only the closing price is present,
  148. the high and low are set equal to the close.
  149.  
  150. Data items that appear in the input data after the last item you want do
  151. not have to be specified.  For example, assume you want to pick up only
  152. the current closing price, and that each input line contains the time,
  153. ticker symbol, previous close, current high-low-close and volume.  In
  154. this case you would specify STRRRC.  The volume would be ignored.
  155. Remember in this version of the program you MUST specify the ticker sym-
  156. bol, and it need not be the first item in the line.  (In Release 2.54
  157. and earlier versions, you didn't have to specify T for the ticker symbol
  158. - the program always assumed it was the first item on each line.)
  159.  
  160.  
  161.  
  162. SPECIFICATION OF ASCII FILE FORMAT                           PAGE 8 OF 9
  163.  
  164. After the "translation" process is finished, the data is shown on the
  165. screen and you can inspect it.  If you didn't get any data at all, or
  166. you got only one or two lines, the most likely cause is the data items
  167. are not in the same order that you specified.  You should visually
  168. inspect both the incoming ASCII data and the resulting Stock Charting
  169. System data to make sure everything is reasonable and hopefully